package com.arsn.myf.resource.entity;

import com.arsn.myf.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.springframework.format.annotation.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 对象存储对象
 *
 * @author zhongrj
 * @date 2022-12-12 20:40:38
 */
@Data
@TableName("sys_oss")
@ApiModel(value = "Oss对象", description = "Oss对象")
public class Oss extends BaseEntity implements Serializable{

    private static final long serialVersionUID = 1L;

    /**
    * 主键
    */
    @TableId(value = "id",type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
    * 分类
    */
    @ApiModelProperty(value = "分类")
    private Integer category;

    /**
    * 资源编号
    */
    @ApiModelProperty(value = "资源编号")
    private String ossCode;

    /**
    * 资源地址
    */
    @ApiModelProperty(value = "资源地址")
    private String endpoint;

    /**
    * accessKey
    */
    @ApiModelProperty(value = "accessKey")
    private String accessKey;

    /**
    * secretKey
    */
    @ApiModelProperty(value = "secretKey")
    private String secretKey;

    /**
    * 空间名
    */
    @ApiModelProperty(value = "空间名")
    private String bucketName;

    /**
    * 应用ID
    */
    @ApiModelProperty(value = "应用ID")
    private String appId;

    /**
    * 地域简称
    */
    @ApiModelProperty(value = "地域简称")
    private String region;

    /**
    * 备注
    */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
    * 状态  1:已开启 2：已禁用
    */
    @ApiModelProperty(value = "状态  1:已开启 2：已禁用")
    private Integer status;

    /**
    * 是否已删除 0：未删除  1：已删除
    */
    @ApiModelProperty(value = "是否已删除 0：未删除  1：已删除")
    private Integer isDeleted;

}
